Namespace - LJCTextDataReaderLib
Parameters
layoutFileName - The layout XML file name.
Syntax
C# |
public Void LJCSetFields(String layoutFileName)
|
Sets the DataFields layout from an XML file.
(E)
Example
C# |
using LJCTextDataReaderLib;
bool hasHeadingLine = false;
TextDataReader textReader = new TextDataReader(hasHeadingLine);
textReader.LJCSetFile("InputFileSpec.txt");
textReader.LJCSetFields("DataFieldConfig.xml");
while(textReader.Read())
{
for int index = 0; index < textReader.FieldCount; index++)
{
string data = textReader.GetString(index);
}
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.